package com.example.demo.controller;

import com.example.demo.ao.*;
import com.example.demo.service.SettingEquipmentService;
import com.example.demo.vo.SettingEquipmentVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/setting/equipment")
public class SettingEquipmentController {

    @Autowired
    private SettingEquipmentService settingEquipmentService;


    /**
     * 工单创建
     */
    @PostMapping("/startTicket")
    public int startTicket(@RequestBody SettingEquipmentUserAo settingEquipmentUserAoAoAo,
                                                SettingEquipmentEquipmentAo settingEquipmentEquipmentAo,
                                                SettingEquipmentWkorderAo settingEquipmentWkorderAo){
        return settingEquipmentService.startTicket(settingEquipmentUserAoAoAo, settingEquipmentEquipmentAo, settingEquipmentWkorderAo);
    }

}
